package com.mk.magic_c.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.mk.magic_c.dto.UserLoginVo;
import com.mk.magic_c.dto.UserRegisterVo;
import com.mk.magic_c.model.User;

import java.util.Map;

/**
 * <p>
 * 服务类
 * </p>
 *
 * @author Magic Kong
 * @since 2021-10-02
 */
public interface UserService extends IService<User> {
    /**
     * 用户注册
     *
     * @param userRegisterVo
     * @return
     */
    Map<String, Object> register(UserRegisterVo userRegisterVo);

    /**
     * 激活账号
     *
     * @param id             用户id
     * @param activationCode 激活码
     * @return see {@link com.mk.magic_c.utils.BusinessConstant}
     */
    int activeAccount(Integer id, String activationCode);

    /**
     * 用户登陆
     *
     * @param userLoginVo 登陆参数
     * @return
     */
    Map<String, String> login(UserLoginVo userLoginVo);
}
